package sg.edu.nus.iss.jass.dto;

import java.util.List;

import sg.edu.nus.iss.jass.datastore.BaseDTO;
import sg.edu.nus.iss.jass.util.Util;

public class JobSeeker extends BaseDTO {

	private String name;

	private String telNo;

	private String email;

	private String userId;

	private String address;

	private List<Resume> resumes;

	private String resumeIds;

	private List<Skill> skills;

	private String skillIds;

	/**
	 * @return the name
	 */
	public String getName() {

		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {

		this.name = name;
	}

	/**
	 * @return the telNo
	 */
	public String getTelNo() {

		return telNo;
	}

	/**
	 * @param telNo the telNo to set
	 */
	public void setTelNo(String telNo) {

		this.telNo = telNo;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {

		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {

		this.email = email;
	}

	/**
	 * @return the userId
	 */
	public String getUserId() {

		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(String userId) {

		this.userId = userId;
	}


	/**
	 * @return the resumes
	 */
	public List<Resume> getResumes() {

		return resumes;
	}

	/**
	 * @param resumes the resumes to set
	 */
	public void setResumes(List<Resume> resumes) {

		this.resumes = resumes;
	}


	/**
	 * @return the skills
	 */
	public List<Skill> getSkills() {

		return skills;
	}

	/**
	 * @param skills the skills to set
	 */
	public void setSkills(List<Skill> skills) {

		this.skills = skills;
	}

	
	/**
	 * @return the address
	 */
	public String getAddress() {
	
		return address;
	}

	
	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
	
		this.address = address;
	}

	
	/**
	 * @return the resumeIds
	 */
	public String getResumeIds() {
		if(!Util.isEmpty(resumes)){
			return super.getIds(resumes);
		}
		if(!Util.isEmpty(resumeIds)) {
			return resumeIds;
		}
		return null;
	}

	
	/**
	 * @param resumeIds the resumeIds to set
	 */
	public void setResumeIds(String resumeIds) {
	
		this.resumeIds = resumeIds;
	}

	
	/**
	 * @return the skillIds
	 */
	public String getSkillIds() {
	
		if(!Util.isEmpty(skills)){
			return super.getIds(skills);
		}
		if(!Util.isEmpty(skillIds)) {
			return skillIds;
		}
		return null;
	}

	
	/**
	 * @param skillIds the skillIds to set
	 */
	public void setSkillIds(String skillIds) {
	
		this.skillIds = skillIds;
	}

}
